import { createApp } from 'vue'


import './assets/styles/index.scss';
import 'element-plus/theme-chalk/dark/css-vars.css';




import App from './App.vue'
import router from './router'
import store from './store'

// 自定义指令
import directive from './directive';

// permission control
import './permission';

// 国际化
import i18n from '@renderer/lang/index';

// 注册插件
import plugins from '@renderer/plugins/index'; // plugins


// svg图标
import 'virtual:svg-icons-register';
import ElementIcons from '@renderer/plugins/svgicon';


// 修改 el-dialog 默认点击遮照为不关闭
import { ElDialog } from 'element-plus';

ElDialog.props.closeOnClickModal.default = false;
const app = createApp(App);


app.use(ElementIcons);
app.use(router);
app.use(store);
app.use(i18n);
app.use(plugins);

// 自定义指令
directive(app);

app.mount('#app');

